import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/ruoyi";

// 查询发音人列表
export function listChatBackgroundMusic(query) {
  return request({
    url: '/speaker/chatBackgroundMusic/selectChatBackgroundMusicList',
    method: 'get',
    params: query
  })
}


// 新增发音人
export function insertChatBackgroundMusic(data) {
  return request({
    url: '/speaker/chatBackgroundMusic/insertChatBackgroundMusic',
    method: 'post',
    data: data
  })
}

//查询详情
export function selectChatBackgroundMusic(uid) {
  return request({
    url: '/speaker/chatBackgroundMusic/selectChatBackgroundMusic/' + parseStrEmpty(uid),
    method: 'get',
  })
}


//删除发音人
export function deleteChatBackgroundMusic(data) {
  return request({
    url: '/speaker/chatBackgroundMusic/deleteChatBackgroundMusic',
    method: 'post',
    data: data
  })
}


// 修改aiui配置信息
export function updateChatBackgroundMusic(data) {
  return request({
    url: '/speaker/chatBackgroundMusic/updateChatBackgroundMusic',
    method: 'post',
    data: data
  })
}
